package com.zjtaixue.usersite.query;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by Administrator on 2017/7/12.
 */

@Getter
@Setter
public class QueryObject {
    //当前页
    private int currentPage = 1;
    //每一页行数
    private int pageSize = 10;
    //开始索引
    public int getStart(){
        return (currentPage - 1) * pageSize;
    }
}
